package com.rain.shoppingscienceproj.utils.sonic;

import android.content.Context;
import android.content.Intent;

import com.tencent.sonic.sdk.SonicSession;
import com.tencent.sonic.sdk.SonicSessionConnection;

import java.io.BufferedInputStream;
import java.lang.ref.WeakReference;
import java.util.List;
import java.util.Map;

/**
 * Author: Rain
 * Create: 2018/4/24 9:57
 */

public class OfflinePkgSessionConnection extends SonicSessionConnection {

    private final WeakReference<Context> context;

    public OfflinePkgSessionConnection(Context context, SonicSession session, Intent intent) {
        super(session, intent);
        this.context = new WeakReference<Context>(context);
    }

    @Override
    public void disconnect() {

    }

    @Override
    public int getResponseCode() {
        return 0;
    }

    @Override
    public Map<String, List<String>> getResponseHeaderFields() {
        return null;
    }

    @Override
    public String getResponseHeaderField(String key) {
        return null;
    }

    @Override
    protected int internalConnect() {
        return 0;
    }

    @Override
    protected BufferedInputStream internalGetResponseStream() {
        return null;
    }
}
